<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>易优名品</title>
    <link rel="stylesheet" href="__LayUI__/css/layui.css">
    <link rel="stylesheet" href="__Admin__/css/admin.scss">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    {include file="layout/head" /}

    {include file="layout/sidebar" /}

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div id="mainContain">
            <div class="layui-row">
                <a href="{:url('AuthRule/add')}">新增权限</a>
            </div>
            <table class="layui-table">
                <colgroup>
                    <col width="150">
                    <col width="300">
                    <col width="200">

                    <col width="200">
                    <col>
                </colgroup>
                <thead>
                <tr>
                    <th>ID</th>
                    <th>标题</th>
                    <th>级别</th>
                    <th>控/方</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                {volist name="res" id="vo"}
                    <tr>
                        <td>{$vo.id}</td>
                        <td><?php echo str_repeat('---',$vo['level'])?>{$vo.title}</td>
                        <td>{$vo.level}级别</td>
                        <td>{$vo.name}</td>
                        <td>
                            <a href="{:url('AuthRule/edit',array('id'=>$vo['id']))}" class="layui-btn layui-btn-normal">修改</a>
                            <a href="{:url('AuthRule/del',array('id'=>$vo['id']))}" class="layui-btn layui-btn-danger">删除</a>
                        </td>
                    </tr>
                {/volist}

                </tbody>

            </table>
            <nav>

            </nav>
        </div>
    </div>

    {include file="layout/footer" /}

</div>
<script src="__LayUI__/layui.js"></script>
<script>

    layui.use(["element","form"], function(){

        var form = layui.form;
    });


</script>
</body>
</html>